/* Copyright (c) 2016-2020 Enfry Ltd. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Enfry. 
 * You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the agreements
 * you entered into with Enfry.
 */
package com.enfry.storage.api;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.jweb.framework.core.service.sqlmap.SqlMap;
import com.jweb.framework.id.batch.IdWorker;

public class BaseApi {
	protected Logger logger = LoggerFactory.getLogger(getClass());

	public BaseApi() {
	}

	@Resource
	protected SqlMap sqlMap;

	@Resource
	protected IdWorker idWorker;

	public IdWorker getIdWorker() {
		return idWorker;
	}

	public String getNextId() {
		return this.idWorker.nextStringId();
	}
}
